package edu.sdcet.lx01.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("j2300132") //指定表名
public class Student { //指定主键字段名
    @TableId("student_id")
    private String studentId;
    private String name;
    private String major;


    @TableField("class") //由于class是Sql关键字，需特殊处理
    private String className;

    @TableField("date_of_birth")//修正字段名映射，原来是拼写错误的data_of_birth
    private String dateOfBirth;

    private String gender;
    private String phoneNumber;
    private String email;
    private Integer status;
    private String createTime;
    private String updateTime;
}
